﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

namespace AutoDeployForSims.Entity.CommBoardConfig
{

    [XmlRoot("Board")] // 根元素名称
    public class Board
    {
        [XmlAttribute("IP")] // 属性
        public int IP { get; set; }

        [XmlElement("CommOrder")] // 子元素
        public string CommOrder { get; set; }

        [XmlElement("ComType")]
        public string ComType { get; set; }

        [XmlElement("ComPortName")]
        public int ComPortName { get; set; }
    }

    [XmlRoot("Boards")]
    public class Boards : List<Board> { }
    
}
